package com.dycloud.project.controller;

import com.dycloud.project.domain.UserLikeRecord;
import com.dycloud.project.service.IUserLikeRecordService;
import com.dycloud.project.web.controller.BaseController;
import com.dycloud.project.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author : renhang
 * @description UserLikeRecordController
 * @date : 2025-07-02 23:22
 **/
@RestController
@RequestMapping("/business/record")
public class UserLikeRecordController extends BaseController {
    @Autowired
    private IUserLikeRecordService userLikeRecordService;

    /**
     * 查询用户点赞记录列表
     */
    @PreAuthorize("@ss.hasPermi('admin')")
    @GetMapping("/list")
    public TableDataInfo list(UserLikeRecord userLikeRecord) {
        startPage();
        List<UserLikeRecord> list = userLikeRecordService.selectUserLikeRecordList(userLikeRecord);
        return getDataTable(list);
    }


//    /**
//     * 获取用户点赞记录详细信息
//     */
//    @PreAuthorize("@ss.hasPermi('business:record:query')")
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") Long id) {
//        return success(userLikeRecordService.selectUserLikeRecordById(id));
//    }


}